package com.zt.location.modules.base.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zt.location.modules.base.dao.GroupDao;
import com.zt.location.modules.base.entity.GroupEntity;
import com.zt.location.modules.base.service.GroupService;

@Service("groupService")
public class GroupServiceImpl implements GroupService {
	@Autowired
	private GroupDao groupDao;

	@Override
	public GroupEntity queryObject(Integer id) {
		return groupDao.queryObject(id);
	}

	@Override
	public List<GroupEntity> queryList(Map<String, Object> map) {
		return groupDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return groupDao.queryTotal(map);
	}

	@Override
	public void save(GroupEntity group) {
		groupDao.save(group);
	}

	@Override
	public void update(GroupEntity group) {
		groupDao.update(group);
	}

	@Override
	public void delete(Integer id) {
		groupDao.delete(id);
	}

	@Override
	public void deleteBatch(Integer[] ids) {
		groupDao.deleteBatch(ids);
	}

}
